package com.itcast.mapper;

import com.itcast.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrderSettingMonth(Map<String, String> map);
    //检查用户所选择的预约日期是否已经提前进行了预约设置
    OrderSetting findByOrderDate(Date parseString2Date);
    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);
}
